package com.project.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MVCConfig implements WebMvcConfigurer {
      @Override
      public void addResourceHandlers(ResourceHandlerRegistry registry) {
            //http://localhost:8088/face/1676267646140美女.png
            registry.addResourceHandler("/face2/**")
                    .addResourceLocations("file:/j191/img/");
            registry.addResourceHandler("/face/**")
                    .addResourceLocations("file:H:\\Springxx\\phaseIII\\lovomall\\ssc-web\\src\\main\\resources\\face\\");
      }
}
